<?php defined('_JEXEC') or die('Restricted access');?>
<script language="javascript" type="text/javascript">
var fieldMsg = {
	fid: "请选择农场",
	pid: "请选择植物",
	uid: "请选择记录人员",
	date: "实施日期"
};
var _root = '<?php echo JURI::root()?>';
</script>

<form id="adminForm" method="post" name="adminForm">
  <fieldset>
    <div style="float: right;">
      <button class="submit" type="submit" onclick="saveForm(this.form);"> 保存</button>
      <button type="button" onclick="window.parent.document.getElementById('sbox-window').close();"> 取消</button>
    </div>
    <div class="configuration"> 新增种植纪录 </div>
  </fieldset>
  <div class="">
    <fieldset class="adminform">
      <legend>新增种植纪录</legend>
      <table class="admintable">
        <?php JHTML::_('farm.plantPlanDropList'); ?>
        <tbody class="hideinfo" style="display:none;">
        <tr>
          <td width="120" class="key"> 农场编号: </td>
          <td id="fid"></td>
        </tr>
        <tr>
          <td width="120" class="key"> 植物编号: </td>
          <td id="pid"></td>
        </tr>
        </tbody>
        <tr>
          <td width="120" class="key"> 实施日期: </td>
          <td><?php echo JHTML::_('calendar', "", 'date', 'date', '%Y-%m-%d', array('class'=>'inputbox required', 'size'=>'25',  'maxlength'=>'19')); ?></td>
        </tr>
        <?php JHTML::_('farm.userDropList', array('class'=>'required'));?>
        <tbody class="hideinfo" style="display:none;">
        <tr>
          <td width="120" class="key" valign="top">操作：</td>
          <td id="opes"></td>
        </tr>
        </tbody>
        <?php JHTML::_('farm.diseaseDropList'); ?>
        <tr>
          <td width="120" class="key" valign="top"> 添加植物状态: </td>
          <td><div id="status-wrap">
              <input type="text" maxlength="19" size="25" class="inputbox required" value="" id="status" name="status"/>
            </div></td>
        </tr>
      </table>
    </fieldset>
  </div>
  <div class="clr"></div>
  <input type="hidden" name="task" value="savePlantRecord" />
  <input type="hidden" name="controller" value="<?php echo JRequest::getWord('controller', 'farms');?>" />
  <input type="hidden" name="option" value="com_farm" />
  <input type="hidden" name="id" value="" />
  <?php echo JHTML::_( 'form.token' ); ?>
</form>
